package com.snopy.cas;

import lombok.extern.slf4j.Slf4j;
import sun.misc.Unsafe;

/**
 * @author snopy
 * @version 1.0.0
 * @classname Test1
 * @description
 * @email 77912204@qq.com
 * @date 2022/02/19 18:07
 */
@Slf4j
public class Test1 {
    public static void main(String[] args) {
        Integer a = 1;
        Integer b = 2;
        Integer c = 0;
        Unsafe.getUnsafe().compareAndSwapObject(a,1,b,c);
        log.info("val->{}",c);
    }
}
